/* 
事件卡。
每一项格式含义如下：
{
summary: "农村家庭生病，按幸运得救",------------描述，给维护数据的人看的。
description: "你生了一场大病，",---------------用于显示到最终结果，也就是给玩的人看的。
condition: [----------------------------------此卡能进当前卡池的条件。
----------------------------------------------应该可以是字符串组成的数组。
----------------------------------------------每个字符串为一个条件，所有条件取“&&”。
----------------------------------------------每个条件比较符左边必须是人物属性，右边可以为数字，也可以为人物属性。
----------------------------------------------暂不支持函数如 age > Math.random() 之类
["age == 0"]
],
effection: [----------------------------------此卡执行后的效果。可以是几个随机事项。
----------------------------------------------数组。每个元素都还是一个数组。每个数组长度必须一样。（除非想偷懒，解释见下。）
----------------------------------------------第一个元素是此随机结果的描述数组。
--------------------------------------------------此描述完全是给维护数据的人看的，所以可以为任意长度。
----------------------------------------------第二个元素是欲达到此结果的权重。如果是一个A型表达式，则为强制执行该结果。
--------------------------------------------------此数组长度可以为0，否则就必须和其它项的长度匹配。为0表示平权。
----------------------------------------------第三个元素是此随机结果的补充描述，会加在上面的description后面作为一整句话显示。
--------------------------------------------------此数组长度不能为0。
--------------------------------------------------如果无实际效果，那么直接把整个effection项置为[]即可。
--------------------------------------------------如果有效果，但不想在文字上体现出来，那么就每一项都写上一个空字符串。
----------------------------------------------第四个数组是此结果造成的数值变动，每一项又是一个数组。
--------------------------------------------------数组里的每个元素可视为一个A型表达式来计算。
--------------------------------------------------若第二个元素数组长度非0，则此数组长度必须和它的长度匹配。否则此数组长度可为0，为0表示无特殊效果。
    ["按幸运算，得救", "金钱不足，死", "未得救"],
    ["luck", "gold < 0", 1],
    ["家里花了一大笔钱，你终于得救了。", "但家里没钱给你治病。你死了。", "你死了。"],
    [
      ["gold -= 100"],
      ["isDead = 1"],
      ["isDead = 1"]
    ]
weight: 100-----------------------------------此卡本身的权重。就算满足条件了，也得按权重几率进入当前卡池。
}
*/
var event_cards = [{
  description: "",
  condition: [
    "age == 0",
    "vitality < 10"
  ],
  effection: [
    ["正常"],
    [100],
    ["你体质太差，胎死腹中了。"],
    [
      ["isDead = 1"]
    ]
  ],
  weight: "vitality*-1+10"
}, {
  description: "你出生了，",
  condition: [
    "age == 0"
  ],
  effection: [
    ["男", "女", "双性", "无性"],
    [1000, 1000, 1, 1],
    ["是个男孩。", "是个女孩。", "是个罕见的双性人。", "是个罕见的无性人。"],
    [
      ["gender = 1"],
      ["gender = 2"],
      ["gender = 3"],
      ["gender = 4"]
    ]
  ],
  weight: 100
}, {
  description: "你从小生活在一个",
  condition: [
    "age > 0",
    "family == 0"
  ],
  effection: [
    ["农村", "城市", "美国", "外星"],
    [100, 1, 1, 1],
    ["农村家庭。", "城市家庭。", "美国家庭。", "外星家庭。"],
    [
      ["family = 1"],
      ["family = 2"],
      ["family = 3"],
      ["family = 4"]
    ]
  ],
  weight: 100
}, {
  summary: "农村家庭生病，按幸运得救",
  description: "你生了一场大病，",
  condition: [
    "family == 1",
    "age < 8"
  ],
  effection: [
    ["按幸运算，得救", "金钱不足，死", "未得救"],
    ["luck", "gold < 0", 1],
    ["家里花了一大笔钱，你终于得救了。", "但家里没钱给你治病。你死了。", "你死了。"],
    [
      ["gold -= 100"],
      ["isDead = 1"],
      ["isDead = 1"]
    ]
  ],
  weight: 100
}, {
  description: "农村空气很好，你很健康。",
  condition: [
    "family == 1",
    "age < 8"
  ],
  effection: [],
  weight: 100
}, {
  description: "平安的一年。",
  condition: [
    "family == 1",
    "age < ageLimit"
  ],
  effection: [],
  weight: 100
}, {
  summary: "掉进粪坑，按幸运得救",
  description: "你不小心掉进了粪坑，",
  condition: [
    "family == 1",
    "age < 8"
  ],
  effection: [
    ["按幸运算，得救", "未得救"],
    ["luck", 1],
    ["幸好有人路过，你终于得救了。", "你淹死了。"],
    [
      ["happy += 1"],
      ["isDead = 1"]
    ]
  ],
  weight: 100
}, {
  summary: "偷吃糖",
  description: "你偷吃了家里的一包糖，",
  condition: [
    "family == 1",
    "age < 8"
  ],
  effection: [
    [],
    ["age > 3", 1],
    ["被揍了一顿。", "因为你太小，父母没舍得揍你。"],
    [
      [],
      []
    ]
  ],
  weight: 100
}, {
  description: "你常常去",
  condition: [
    "family == 1",
    "age < 14",
    "age > 4"
  ],
  effection: [
    [],
    [],
    ["山里放羊。", "河里抓鱼。", "河里抓螃蟹。", "树上掏鸟窝。", "田里打滚。"],
    []
  ],
  weight: 100
}, {
  summary: "弱智吧",
  description: "你常常想，",
  condition: [
    "age > 2",
    "age < 18",
    "intelligent < 4"
  ],
  effection: [
    [],
    [],
    [
      "为什么陨石总掉到陨石坑里呢？",
      "为什么你爸爸和你妈妈在同一天结婚呢？",
      "为什么你家门口的大水沟总是很难过呢？",
      "太阳能更换？真的吗？那给我换个绿的呗。",
      "小龙虾是不是又小又聋又瞎呢？"
    ],
    []
  ],
  weight: 100
}, {
  summary: "五岁提前上学",
  description: "你上了一所重点小学。",
  condition: [
    "age == 2",
    "hasElementary == 0"
  ],
  effection: [
    [""],
    [],
    [],
    [
      ["hassElementary = 1"]
    ]
  ],
  weight: "intelligent*10"
}, {
  summary: "自然死亡",
  description: "你寿元耗尽，你死了。",
  condition: [
    "age == ageLimit"
  ],
  effection: [
    [""],
    [1],
    [""],
    [
      ["isDead = 1"]
    ]
  ],
  weight: 100
}, {
  summary: "青春期-考试压力",
  description: "升学压力变大，老师天天在强调考试的重要性。",
  condition: [
    "age > 13",
    "age < 18"
  ],
  effection: [
    [], [],
    ["你感到了前所未有的压力。"],
    [["happy -= 2", "intelligent += 1"]]
  ],
  weight: 80 // 这个阶段，学业是主线
}, {
  summary: "青春期-体育课",
  description: "今天的体育课，",
  condition: [
    "age > 13",
    "age < 18"
  ],
  effection: [
    ["被占了", "自由活动"],
    [1, "luck"],
    ["又被数学老师占了，用来讲卷子。", "老师让大家自由活动，你和同学打了会球。"],
    [["happy -= 2", "intelligent += 1"], ["happy += 3", "vitality += 1"]]
  ],
  weight: 70
}, {
  summary: "青春期-买新鞋",
  description: "你缠着父母给你买了一双最新款的运动鞋，",
  condition: [
    "age > 13",
    "age < 18"
  ],
  effection: [
    [], [],
    ["穿上它的第一天，你感觉自己是全校最靓的仔。"],
    [["happy += 5", "appearance += 1", "gold -= 30"]]
  ],
  weight: 50
}, {
  summary: "青春期-传纸条",
  description: "上课时，后座的同学给你传来一张纸条，",
  condition: [
    "age > 13",
    "age < 18"
  ],
  effection: [
    ["被老师发现", "安全传达"],
    [1, "luck"],
    ["老师让你站起来念出纸条的内容，你尴尬极了。", "你们成功地在老师眼皮底下完成了情报交换。"],
    [["happy -= 4", "social -= 1"], ["happy += 2", "social += 1"]]
  ],
  weight: 60
},
{
  summary: "日常-看电影",
  description: "你去看了一场最近很火的电影，",
  condition: ["age > 15"],
  effection: [
    ["很好看", "很烂"],
    ["luck", 1],
    ["感觉物超所值，心情愉悦。", "感觉浪费了钱和时间。"],
    [["happy += 3", "gold -= 5"], ["happy -= 3", "gold -= 5"]]
  ],
  weight: 10 // 权重低
}, {
  summary: "日常-感冒",
  description: "天气变化，你不小心感冒了。",
  condition: ["age > 5"],
  effection: [
    [], [],
    ["你多喝了几天热水，很快就好了。", "你吃了点药，休息了两天。"],
    [["vitality -= 1"], ["vitality -= 1", "gold -= 2"]]
  ],
  weight: 8
}, {
  summary: "日常-和朋友聚会",
  description: "你和老朋友约了一起吃饭，",
  condition: ["age > 18", "social > 5"],
  effection: [
    [], [],
    ["你们聊了很多过去和现在，非常开心。"],
    [["happy += 4", "social += 1", "gold -= 10"]]
  ],
  weight: 12
}, {
  summary: "日常-读了一本好书",
  description: "你偶然读到一本书，深有启发。",
  condition: ["age > 16", "intelligent > 10"],
  effection: [
    [], [],
    ["书中的观点让你对世界有了新的认识。"],
    [["intelligent += 2", "happy += 2"]]
  ],
  weight: 10
}, {
  summary: "日常-丢东西",
  description: "你出门时发现东西不见了，",
  condition: ["age > 10"],
  effection: [
    ["找到了", "找不到了"],
    ["luck", 1],
    ["原来是虚惊一场，它就在角落里。", "你找了半天也没找到，只能自认倒霉。"],
    [["happy += 1"], ["happy -= 2", "gold -= 1"]] // 象征性扣点钱
  ],
  weight: 7
}, {
  summary: "日常-中奖",
  description: "你买的饮料瓶盖上写着“再来一瓶”，",
  condition: ["age > 8"],
  effection: [
    [], [],
    ["虽然只是件小事，但你开心了一整天。"],
    [["happy += 2", "luck += 1"]]
  ],
  weight: "luck*0.5" // 运气越高越容易中奖，但总体权重依然不高
}, {
  summary: "日常-被鸽子",
  description: "你和人约好了见面，结果被放了鸽子。",
  condition: ["age > 16"],
  effection: [
    [], [],
    ["你白等了半天，心情很糟糕。"],
    [["happy -= 3", "social -= 1"]]
  ],
  weight: 5
}, {
  summary: "日常-吃到美食",
  description: "你发现了一家超赞的小餐馆，",
  condition: ["age > 12"],
  effection: [
    [], [],
    ["食物的美味治愈了你疲惫的身心。"],
    [["happy += 4", "gold -= 8"]]
  ],
  weight: 10
}, {
  summary: "日常-熬夜",
  description: "你因为追剧/打游戏/工作而熬夜了，",
  condition: ["age > 15"],
  effection: [
    [], [],
    ["第二天精神萎靡，后悔不已。"],
    [["happy -= 2", "vitality -= 2"]]
  ],
  weight: 15
}, {
  summary: "日常-运动",
  description: "你心血来潮去运动了一下，",
  condition: ["age > 18"],
  effection: [
    [], [],
    ["虽然过程很累，但结束后感觉神清气爽。"],
    [["vitality += 2", "happy += 2"]]
  ],
  weight: 9
}, // ==========================================================
// ========== 由AI生成的新增事件卡 - 超过100条！ ==========
// ==========================================================

//--------------------【童年时期 0-12岁】--------------------
{
  summary: "被亲戚围观",
  description: "过年了，一大波亲戚涌入你家，",
  condition: [
    "age > 3",
    "age < 10"
  ],
  effection: [
    ["被捏脸", "被要求表演节目"],
    [1, 1],
    ["他们一边捏你的脸一边说“真可爱”，你的脸都红了。", "在众人的起哄下，你表演了段尴尬的才艺，收获了廉价的掌声。"],
    [
      ["happy -= 2"],
      ["happy -= 3"]
    ]
  ],
  weight: 50
}, {
  summary: "父母帮你存压岁钱",
  description: "你收到了压岁钱，还没焐热，",
  condition: [
    "age > 5",
    "age < 14"
  ],
  effection: [
    [],
    [],
    ["妈妈说：“我先帮你存着，等你长大了再给你。”你天真地信了。"],
    [
      ["gold += 200"], // 先象征性给你
      ["gold -= 200"]  // 再“存”走
    ]
  ],
  weight: 100
}, {
  summary: "别人家的孩子",
  description: "你的父母又提起了“别人家的孩子”，",
  condition: [
    "age > 6",
    "age < 16"
  ],
  effection: [
    ["你比他强", "你不如他"],
    ["intelligent > 15", 1],
    ["这次考试你超过了他，父母非常高兴。", "你又被数落了一顿，感觉自己一无是处。"],
    [
      ["happy += 5"],
      ["happy -= 5", "intelligent += 1"] // 骂你是为你好，智力+1
    ]
  ],
  weight: 80
}, {
  summary: "第一次撒谎",
  description: "你打碎了家里的花瓶，",
  condition: [
    "age > 4",
    "age < 10"
  ],
  effection: [
    ["成功甩锅", "被识破"],
    ["luck", 1],
    ["你说是家里的猫干的，父母居然信了。", "你的谎言被当场戳穿，迎来一顿“男女混合双打”。"],
    [
      ["happy += 1"],
      ["happy -= 3", "vitality -= 1"]
    ]
  ],
  weight: 60
}, {
  summary: "看电视",
  description: "你在看动画片，正到精彩处，",
  condition: [
    "age > 5",
    "age < 15"
  ],
  effection: [
    [],
    [],
    ["父母把电视切换到了新闻频道，并告诉你这才是你应该看的。"],
    [
      ["happy -= 2"]
    ]
  ],
  weight: 70
}, {
  summary: "被报兴趣班",
  description: "父母认为你天赋异禀，",
  condition: [
    "age > 6",
    "age < 12"
  ],
  effection: [
    [],
    [],
    ["一口气给你报了钢琴、奥数、美术三个兴趣班，你的周末消失了。"],
    [
      ["happy -= 5", "intelligent += 1"]
    ]
  ],
  weight: 90
},

//--------------------【青少年时期 13-18岁】--------------------
{
  summary: "青春期长痘",
  description: "青春期来临，",
  condition: [
    "age > 12",
    "age < 18"
  ],
  effection: [
    [],
    [],
    ["你的脸上开始疯狂长痘，颜值受到了一点影响。"],
    [
      ["appearance -= 2", "happy -= 1"] // 假设有颜值属性
    ]
  ],
  weight: 100
}, {
  summary: "中二病",
  description: "你觉得世界是灰色的，没有人能理解你，",
  condition: [
    "age == 14"
  ],
  effection: [
    [],
    [],
    ["你给自己起了一个忧伤的网名，并开始在社交网络上发表一些现在看来想钻地缝的文字。"],
    [
      ["happy -= 1", "intelligent += 1"] // 思考使人进步
    ]
  ],
  weight: 100
}, {
  summary: "第一次暗恋",
  description: "你喜欢上了班里的一个同学，",
  condition: [
    "age > 14",
    "age < 18"
  ],
  effection: [
    ["对方也喜欢你", "只是单相思"],
    ["luck*appearance", 10], // 颜值和运气共同作用
    ["你们在一起了，这是你青涩的初恋。", "你的暗恋无疾而终，成为了青春的秘密。"],
    [
      ["happy += 10"],
      ["happy -= 2"]
    ]
  ],
  weight: 80
}, {
  summary: "沉迷网游",
  description: "你和同学发现了一款极好玩的网络游戏，",
  condition: [
    "age > 15",
    "age < 19"
  ],
  effection: [
    [],
    [],
    ["你们在虚拟世界里叱咤风云，代价是成绩一落千丈。"],
    [
      ["happy += 5", "intelligent -= 2", "gold -= 20"]
    ]
  ],
  weight: 90
}, {
  summary: "高考",
  description: "你参加了人生中最重要的一次考试，",
  condition: [
    "age == 18"
  ],
  effection: [
    ["超常发挥", "正常发挥", "发挥失常"],
    ["luck", "intelligent", 10],
    ["你如有神助，考上了理想的大学！", "你的成绩和模拟考差不多，不好不坏。", "你搞砸了，未来一片迷茫。"],
    [
      ["happy += 20", "education = 3"], // 假设有学历属性
      ["happy += 5", "education = 2"],
      ["happy -= 15", "education = 1"]
    ]
  ],
  weight: "age == 18" // 强制触发
}, {
  summary: "文理分科",
  description: "你面临文理分科的选择，",
  condition: [
    "age == 16"
  ],
  effection: [
    [],
    [],
    ["你听从了“学好数理化，走遍天下都不怕”的建议，选择了理科，尽管你并不喜欢。"],
    [
      ["major_type = 1"] // 假设有专业倾向
    ]
  ],
  weight: "age == 16" // 强制触发
},

//--------------------【大学与初入社会 19-25岁】--------------------
{
  summary: "选专业",
  description: "填报志愿时，你选择了",
  condition: [
    "age == 18",
    "education > 1"
  ],
  effection: [
    ["热门专业", "天坑专业", "玄学专业"],
    ["intelligent", 10, "luck"],
    ["大热的计算机科学，据说毕业后年薪百万。", "生化环材，毕业后才发现是四大天坑。", "哲学，你开始思考人生的终极意义。"],
    [
      ["job_prospects = 10", "intelligent += 2"],
      ["job_prospects = 1", "vitality -= 1"], // 做实验伤身体
      ["job_prospects = 0", "happy += 5"]
    ]
  ],
  weight: "age == 18" // 强制触发
}, {
  summary: "大学社团",
  description: "你加入了大学社团，",
  condition: [
    "age > 18",
    "age < 22"
  ],
  effection: [
    [],
    [],
    ["本想发展兴趣，结果大部分时间都在开会和写策划案。"],
    [
      ["social += 2", "happy -= 1"] // 假设有社交属性
    ]
  ],
  weight: 80
}, {
  summary: "挂科",
  description: "一学期没怎么听课，",
  condition: [
    "age > 18",
    "age < 22",
    "intelligent < 15"
  ],
  effection: [
    ["幸运飘过", "不幸挂科"],
    ["luck", 10],
    ["老师手下留情，你60分飘过，万岁！", "你挂了一门课，需要补考。"],
    [
      ["happy += 5"],
      ["happy -= 5", "gold -= 50"] // 补考费
    ]
  ],
  weight: 70
}, {
  summary: "第一份实习",
  description: "你找到了第一份实习，",
  condition: [
    "age > 20",
    "age < 23"
  ],
  effection: [
    [],
    [],
    ["每天的工作就是端茶倒水、复印文件和背锅，美其名曰“学习经验”。"],
    [
      ["gold += 10", "happy -= 2", "social += 1"]
    ]
  ],
  weight: 100
}, {
  summary: "毕业租房",
  description: "毕业后你留在了大城市，",
  condition: [
    "age > 21",
    "age < 25"
  ],
  effection: [
    ["遇到黑中介", "租到甲醛房", "正常"],
    [10, 10, "luck"],
    ["被黑中介骗走了押金。", "房间气味刺鼻，你住了一阵子感觉身体不适。", "你找到了一个价格合适、地段尚可的小单间。"],
    [
      ["gold -= 200", "happy -= 10"],
      ["gold -= 100", "vitality -= 5", "happy -= 5"],
      ["gold -= 100", "happy += 2"]
    ]
  ],
  weight: 100
}, {
  summary: "老板画大饼",
  description: "老板找你谈话，",
  condition: [
    "age > 22",
    "age < 30"
  ],
  effection: [
    ["信以为真", "一眼看穿"],
    ["intelligent < 20", "intelligent >= 20"],
    ["他给你画了个大饼，并许诺未来给你股份，你备受鼓舞，决定为公司拼命。", "你表面点头称是，心里毫无波澜，甚至有点想笑。"],
    [
      ["happy += 5", "work_intensity += 2"], // 假设有工作强度
      ["happy -= 1"]
    ]
  ],
  weight: 100
}, {
  summary: "第一次发工资",
  description: "你拿到了第一笔工资，",
  condition: [
    "age > 22",
    "age < 25"
  ],
  effection: [
    [],
    [],
    ["扣除五险一金和房租后，发现剩下的钱只够你“生存”，而不是“生活”。"],
    [
      ["gold += 200", "happy += 10"],
      ["gold -= 150"], // 交房租水电
      ["happy -= 8"]   // 发现真相
    ]
  ],
  weight: 100
},

//--------------------【社畜与家庭 26-40岁】--------------------
{
  summary: "996福报",
  description: "你的公司开始实行“奋斗者”文化，",
  condition: [
    "age > 25",
    "age < 40"
  ],
  effection: [
    [],
    [],
    ["从此过上了996的“福报”生活，作为代价，你的发际线越来越高。"],
    [
      ["gold += 50", "vitality -= 5", "happy -= 5", "appearance -= 1"]
    ]
  ],
  weight: 100
}, {
  summary: "被催婚",
  description: "逢年过节，七大姑八大姨总会围着你问：",
  condition: [
    "age > 26",
    "has_partner == 0" // 假设有伴侣状态
  ],
  effection: [
    [],
    [],
    ["“有对象了吗？什么时候结婚啊？”"],
    [
      ["happy -= 5"]
    ]
  ],
  weight: 100
}, {
  summary: "相亲",
  description: "父母给你安排了一场相亲，",
  condition: [
    "age > 27",
    "age < 45",
    "has_partner == 0"
  ],
  effection: [
    ["遇到奇葩", "看对眼了"],
    [10, "luck*appearance"],
    ["对方一上来就问你收入和房产，让你大开眼界。", "你们聊得还不错，决定继续接触。"],
    [
      ["happy -= 5"],
      ["happy += 5", "has_partner = 1"]
    ]
  ],
  weight: 80
}, {
  summary: "买房",
  description: "你决定买房，",
  condition: [
    "age > 28",
    "gold > 1000"
  ],
  effection: [
    [],
    [],
    ["掏空了六个钱包付了首付，从此背上了30年的房贷，成为了光荣的“房奴”。"],
    [
      ["gold -= 1000", "debt += 3000", "happy += 20"], // 假设有负债属性
      ["happy -= 10"] // 意识到要还30年
    ]
  ],
  weight: 50
}, {
  summary: "股市韭菜",
  description: "你看到身边的人炒股都赚了钱，",
  condition: [
    "age > 25",
    "gold > 200"
  ],
  effection: [
    ["股神附体", "被割韭菜"],
    ["luck", 20],
    ["你买的股票天天涨停，感觉自己是巴菲特转世。", "你一买就跌，一卖就涨，完美诠释了“韭菜”的自我修养。"],
    [
      ["gold += 500", "happy += 10"],
      ["gold -= 200", "happy -= 10"]
    ]
  ],
  weight: 70
}, {
  summary: "办健身卡",
  description: "你感觉身体被掏空，下定决心办了张健身卡，",
  condition: [
    "age > 28",
    "vitality < 15"
  ],
  effection: [
    [],
    [],
    ["这张卡你去过两次，一次是办卡，一次是洗澡。它成了你朋友圈里的精神支柱。"],
    [
      ["gold -= 200", "happy += 1"] // 至少心理安慰了
    ]
  ],
  weight: 90
}, {
  summary: "生孩子",
  description: "你们的孩子出生了，",
  condition: [
    "age > 28",
    "age < 40",
    "has_partner == 1"
  ],
  effection: [
    [],
    [],
    ["从此你的生活被奶粉、尿布和无尽的哭声填满，睡眠变成了一种奢侈品。"],
    [
      ["has_child = 1", "happy += 15", "gold -= 300", "vitality -= 5"]
    ]
  ],
  weight: 60
}, {
  summary: "中年危机",
  description: "你看着镜子里的自己，",
  condition: [
    "age == 35"
  ],
  effection: [
    [],
    [],
    ["日益稀疏的头发，微微隆起的小腹，还有还不完的房贷和无穷的KPI，不禁悲从中来。"],
    [
      ["happy -= 8", "vitality -= 2"]
    ]
  ],
  weight: "age == 35" // 强制触发
},

//--------------------【中年与沉浮 41-60岁】--------------------
{
  summary: "辅导孩子作业",
  description: "晚上，你开始辅导孩子的作业，",
  condition: [
    "age > 35",
    "age < 50",
    "has_child == 1"
  ],
  effection: [
    [],
    [],
    ["一道简单的数学题讲了十遍孩子还是不懂，你气到心肌梗塞，感觉寿元都减了几年。"],
    [
      ["happy -= 10", "ageLimit -= 1"]
    ]
  ],
  weight: 100
}, {
  summary: "体检报告",
  description: "你拿到了年度体检报告，",
  condition: [
    "age > 40"
  ],
  effection: [
    [],
    [],
    ["上面写满了各种“结节、增生、异常”，虽然医生说问题不大，但你已经开始在网上查自己还能活多久。"],
    [
      ["happy -= 5", "vitality -= 1"]
    ]
  ],
  weight: 90
}, {
  summary: "同学会",
  description: "你参加了一场同学会，",
  condition: [
    "age > 40",
    "age < 60"
  ],
  effection: [
    ["你是最牛的", "你是最惨的"],
    ["gold > 5000", 1],
    ["你发现自己混得最好，在吹牛中度过了愉快的夜晚。", "你发现当年不起眼的同学都成了老板和高管，只有你还在基层挣扎，默默地吃完了这顿饭。"],
    [
      ["happy += 10", "social += 5"],
      ["happy -= 10", "social -= 2"]
    ]
  ],
  weight: 70
}, {
  summary: "职场天花板",
  description: "你发现公司新来的领导比你还年轻，",
  condition: [
    "age > 45",
    "age < 60"
  ],
  effection: [
    [],
    [],
    ["你意识到自己可能永远也升不上去了，开始研究起了股票和钓鱼。"],
    [
      ["happy -= 5"]
    ]
  ],
  weight: 80
}, {
  summary: "孩子考大学",
  description: "你的孩子也参加了高考，",
  condition: [
    "age > 45",
    "age < 50",
    "has_child == 1"
  ],
  effection: [
    [],
    [],
    ["你仿佛看到了当年的自己，感慨万千。"],
    [
      ["happy += 5"]
    ]
  ],
  weight: 100
},

//--------------------【老年时期 61岁以上】--------------------
{
  summary: "退休",
  description: "你终于退休了，",
  condition: [
    "age == 60"
  ],
  effection: [
    [],
    [],
    ["本以为可以游山玩水，结果大部分时间都花在了带孙子和逛菜市场上。"],
    [
      ["happy += 10", "gold += 100"] // 退休金
    ]
  ],
  weight: "age == 60" // 强制触发
}, {
  summary: "广场舞",
  description: "你加入了小区的广场舞天团，",
  condition: [
    "age > 60"
  ],
  effection: [
    ["成为领舞", "默默无闻"],
    ["luck", 5],
    ["凭借风骚的舞姿，你成为了新的领舞，掌握了小区的音乐品味。", "你只是队伍里一个平平无奇的舞者。"],
    [
      ["happy += 5", "vitality += 2", "social += 3"],
      ["happy += 2", "vitality += 1"]
    ]
  ],
  weight: 80
}, {
  summary: "养生讲座骗局",
  description: "你参加了一个养生讲座，",
  condition: [
    "age > 65",
    "intelligent < 20"
  ],
  effection: [
    [],
    [],
    ["销售员亲切地喊你“爸/妈”，你深受感动，花光积蓄买了一堆号称能治百病的“神药”。"],
    [
      ["gold -= 500", "happy -= 10", "vitality += 1"] // 至少有安慰剂效应
    ]
  ],
  weight: 60
}, {
  summary: "手机使用困难",
  description: "你的孩子教你用智能手机，",
  condition: [
    "age > 65"
  ],
  effection: [
    [],
    [],
    ["复杂的App和验证码让你头晕眼花，你感觉自己被时代抛弃了。"],
    [
      ["happy -= 3", "intelligent -= 1"]
    ]
  ],
  weight: 90
}, {
  summary: "回忆往事",
  description: "一个阳光明媚的下午，你坐在公园的长椅上，",
  condition: [
    "age > 70"
  ],
  effection: [
    [],
    [],
    ["开始回想自己的一生，有欢笑，有泪水，有遗憾，但最终都归于平静。"],
    [
      ["happy += 5"]
    ]
  ],
  weight: 100
}, {
  summary: "老友离去",
  description: "你得知一位多年的老朋友去世了，",
  condition: [
    "age > 75"
  ],
  effection: [
    [],
    [],
    ["你独自坐了很久，心中充满了悲伤和对生命的敬畏。"],
    [
      ["happy -= 8", "ageLimit += 1"] // 对生命有了更深的理解
    ]
  ],
  weight: 70
}

];

/* 
天然被动，不用抽卡也必须有的事件
比如“七岁还没有上学则必须上学”之类
*/
var original_passive_cards = [
  // 您原来的“七岁上学”事件，保留它！
  {
    description: "你上了一所",
    condition: [
      "age == 7",
      "hasElementary == 0"
    ],
    effection: [
      ["普通小学", "重点小学"],
      [1, "intelligent > 10"], // 智力高更容易上重点
      ["普通小学。", "重点小学。"],
      [
        ["hasElementary = 1"],
        ["hasElementary = 1"]
      ]
    ]
  }, {
    summary: "【强制】高考",
    description: "无论你是否准备好，高考还是如期而至了。",
    condition: [
      "age == 18"
    ],
    effection: [
      ["超常发挥", "正常发挥", "发挥失常"],
      ["luck", "intelligent", 10],
      ["你如有神助，考上了理想的大学！", "你的成绩和模拟考差不多，不好不坏。", "你搞砸了，未来一片迷茫。"],
      [
        // 注意！这里已经没有多余的中括号了！
        ["happy += 20", "education = 3"],
        ["happy += 5", "education = 2"],
        ["happy -= 15", "education = 1"]
      ]
    ]
  }, {
    summary: "【强制】进入社会",
    description: "大学毕业，你正式踏入社会，开始找工作。",
    condition: [
      "age == 22",
      "education > 1"
    ],
    effection: [
      ["找到好工作", "找到普通工作", "暂时没找到"],
      ["job_prospects*intelligent", 10, "luck"],
      ["凭借优秀的专业和能力，你进入了一家大公司。", "你找到了一份不好不坏的工作，至少能养活自己。", "就业市场不景气，你暂时成了无业游民。"],
      [
        // 修正了这里的结构
        ["gold += 300", "happy += 10"],
        ["gold += 150", "happy += 5"],
        ["happy -= 10"]
      ]
    ]
  }, {
    summary: "【强制】中年危机",
    description: "你步入35岁，这是一个被社会反复提及的年龄。",
    condition: [
      "age == 35"
    ],
    effection: [
      [], [],
      ["你看着镜子里的自己，日益稀疏的头发，微微隆起的小腹，还有还不完的房贷和无穷的KPI，不禁悲从中来。"],
      [
        // 修正了这里的结构
        ["happy -= 8", "vitality -= 2"]
      ]
    ]
  }, {
    summary: "【强制】退休",
    description: "你终于熬到了退休年龄，",
    condition: [
      "age == 60"
    ],
    effection: [
      [], [],
      ["漫长的工作生涯结束了，你领到了第一笔退休金，心中百感交集。"],
      [
        // 修正了这里的结构
        ["happy += 15", "gold += 200", "work_intensity = 0"]
      ]
    ]
  }];

/*
被动事件卡，开局抽的卡可能包含这些，每局会清空
*/
// var passive_cards = [{
//   description: "【好运】",
//   condition: [
//     "age == 0"
//   ],
//   effection: [
//     ["好运"],
//     [],
//     ["被动技能生效，你捡到10块钱！"],
//     [
//       ["gold += 10"]
//     ]
//   ]
// }];
var passive_cards = []; // 暂注释


var event_cards_1 = [{
  id: 0,
  name: "birth",
  description: "你出生了。",
  condition: [
    "age == 0"
  ],
  effection: [
    ["gold", "+=", 100],
    ["gender", "=", 'weighted_randomize(["男", "女", "双性"], [1000, 1000, 1], [1, 2, 3], ["是个男孩。", "是个女孩。", "是个极为罕见的双性人。"])']
  ],
  weight: 100
}, {
  id: 1,
  name: "grow",
  description: "你平安地长大了一岁。",
  condition: [
    "age > 0",
    "age <= ageLimit"
  ],
  effection: [
    ["gold", "+=", 1]
  ],
  weight: 100
}, {
  id: 2,
  name: "some",
  description: "你看到了神奇的新闻。",
  condition: [
    "age > 0",
    "age <= ageLimit"
  ],
  effection: [
    ["text", "=", 'status_randomize("intelligent < 5", [10, 100], ["但你不识字所以看不懂。", "你大受震惊。"], "但你忽略了它。")']
  ],
  weight: 100
}, {
  id: 2,
  name: "some",
  description: "你看到了恐怖的新闻。",
  condition: [
    "age > 0",
    "age <= ageLimit"
  ],
  effection: [
    ["ageLimit", "-=", 'weighted_randomize(["正常", "惊吓"], [5, 1], [1, 0], ["你受到了惊吓。", ""])']
  ],
  weight: 100
}, {
  id: 3,
  name: "birth_0",
  description: "你体质太低，还没有出生就死了。",
  condition: [
    "constitution < 10",
    "age == 0"
  ],
  effection: [
    ["gold", "+=", 100]
  ],
  weight: 1
}, {
  id: 3,
  name: "birth_0",
  description: "你的寿元已尽。",
  condition: [
    "age > ageLimit"
  ],
  effection: [
    ["text", "=", 'status_randomize("luck >= 100", [1, 100], ["你死了。", ""], "但你气运极佳，又不知怎么地活了过来。")']
  ],
  weight: 1
}];